<!DOCTYPE html>
<html>
<head>
<title>函数的调用</title>

<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">

<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->

</head>

<body>
	<script>
		function add(c, d) {//无需声明参数
			var a = 10;
			var b = 33;
			alert(a + b);
		}
	</script>
	<script>
		function divi(a, b) {
			var sum = a / b;
			return sum;
		}
	</script>
	<!-- 2.在HTML文件中调用函数sum ---------button------form--------->
	<br />
	<button onclick="add()">按钮1</button>
	<br />
	<button onclick="alert(divi(12,23))">按钮2</button>
	<br />
	<form>
		<input type="button" value="按钮3" onclick="alert(divi(12,2))">
	</form>

</body>
</html>
